﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "IFamily2DSketchCurve.h"
#include "GmFamilyService.h"
#include "ElementCreationOptions.h"

namespace gfam
{
    /// \brief 坡度线
    class GM_FAMILY_SERVICE_EXPORT IFamily2DSketchSlopeLine : public gfam::IFamily2DSketchCurve
    {
        DEFINE_CAST_DERIVED(gfam::IFamily2DSketchSlopeLine, gfam::IFamily2DSketchCurve)
    public:
        /// \brief  创建坡度线
        ///
        /// \param  pDocument  文档
        /// \param  sketchId 草图id
        /// \param  sketchPlaneId 草图平面id
        /// \param  start 起点
        /// \param  end 末点
        /// \param  boundaryCurveId  边界线id
        /// \param option 创建选项
        /// \return 坡度线
        static IFamily2DSketchSlopeLine* Create(gcmp::IDocument* pDocument, const gcmp::ElementId& sketchId, const gcmp::ElementId& sketchPlaneId, const gcmp::Vector3d&start, const gcmp::Vector3d&end, const gcmp::ElementId& boundaryCurveId, gcmp::ElementCreationOptions option = gcmp::ElementCreationOptions::Normal);

        /// \brief  获取角度
        ///
        /// \return 角度
        virtual double GetSlopeAngle() const = 0;

        /// \brief  设置角度
        ///
        /// \param slopeVlaue 角度
        virtual void SetSlopeAngle(double slopeVlaue) = 0;

    };
}